package com.atguigu.exer1;

public abstract class Graphic {
    public abstract double area();
    public abstract double perimeter();

    @Override
    public String toString() {
        return "面积：" + area() + "，周长：" + perimeter();
    }
}